package com.example.job09redispubsub;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.JedisPool;


@Configuration
public class BeanConfig {

    @Bean
    public JedisPool jedisPool() {
        return new JedisPool("127.0.0.1", 6379);
    }

/*    @Bean
    public RedisClient redisClient() {
        return RedisClient.create("redis://127.0.0.1:6379");
    }

    @Bean
    public RedissonClient redissonClient() throws IOException {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://127.0.0.1:6379");
        return Redisson.create(config);
    }*/



}
